var StatusComponent = React.createClass({
    componentDidMount: function() {

    },
    receiveMsg: function(data) {
        console.log(data);
    },
    getInitialState: function () {
        return this.props ? this.props : {};
    },
    handleClick: function() {
        //eventFlux.dispatch(['index_slider_Event', 'index_init_Event'], {username: "xiaop"});
        //eventFlux.broadcast({username: "xiaop"});
    },
    render:function() {

        var orderStatus = this.state.data.orderStatus;
        var sflag = '';
        switch (orderStatus){
            case 'RECEIVED': sflag = 'list-status-6';break;    //已签收
            case 'DISPACTCHING': sflag = 'list-status-5'; break;    //配送中
            case 'TRANSPORT': sflag = 'list-status-4'; break;    //运输中
            case 'RECEGOOD': sflag = 'list-status-3'; break;    //已收货
            case 'ACCEPT': sflag = 'list-status-2'; break;    //已受理
            case 'COMMITED': sflag = 'list-status-1'; break;    //已提交
            default: sflag = 'list-status-0';    //草稿
        }


        var oClass = 'list-status '+ sflag;
        return ~status;
    }
});
module.exports = StatusComponent;